<script setup>
// 父传子定制标题
defineProps({
  title: {
    required: true,
    type: String
  }
})
</script>
<template>
  <div>
    <!-- 路由出口 -->
    <router-view></router-view>
  </div>
  <el-card class="page-area">
    <template #header>
      <div class="area-header">
        <span>{{ title }}</span>
      </div>
    </template>

    <!-- 用插槽 定制内容部分 -->
    <slot></slot>
  </el-card>
</template>
<style lang="scss" scoped></style>
